import unittest
from Employ import Employ

class EmployTest(unittest.TestCase):

    def setUp(self):
        self.employ=Employ('wang','minyu',3000)

    def test_give_default_raise(self):
        surge=self.employ.give_raise()
        self.assertEqual(8000,surge)

    def test_give_custom_raise(self):
        surge=self.employ.give_raise(2000)
        self.assertEqual(5000,surge)

if __name__=='__main__':
    unittest.main()